/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * LabelFilterPanel.java
 *
 * Created on 22.Şub.2010, 14:40:53
 */
package org.testis.gui.mvc.view.labels;

import javax.swing.JFrame;

/**
 *
 * @author selcuk
 */
public class LabelFilterPanel extends javax.swing.JPanel {

    /** Creates new form LabelFilterPanel */
    public LabelFilterPanel() {
        initComponents();
    }

    public String getLabelSelectionStr() {
        return ((LabelJTreeWithTriStateCheckbox) jTree1).getLabelSelectionStr();
    }

    public void deselectNodes() {
        ((LabelJTreeWithTriStateCheckbox) jTree1).deselectNodes();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        jTree1 = new LabelJTreeWithTriStateCheckbox();

        setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.LINE_AXIS));

        jScrollPane1.setViewportView(jTree1);

        add(jScrollPane1);
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTree jTree1;
    // End of variables declaration//GEN-END:variables

    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                JFrame frame = new JFrame("Demo");
                LabelFilterPanel view = new LabelFilterPanel();
                frame.getContentPane().add(view);
                frame.pack();
                frame.setVisible(true);
            }
        });
    }
}
